#{extends 'main.html' /}
#{set title:'Search results' /}

	<h3>Found multiple events for <span class="highlighted">${name}</span></h3>

	<span>
		#{if (toPrice != 0) || (fromPrice != 0)}
				Price 
				#{if fromPrice != 0}
					from ${fromPrice.formatCurrency('EUR')} 
				#{/if}
				#{if toPrice != 0}
					to ${toPrice.formatCurrency('EUR')}
				#{/if}
		#{/if}
		#{if includePrivateOffers != null}
				#{if includePrivateOffers == true}
					including Private Offers
				#{/if}
				#{else}
					excluding Private Offers
				#{/else}
		#{/if}
	</span>
	<br>
	
#{list items:events, as:'event'}
    
    <a class=showEvents href="@{Application.showOffers(event.id, fromPrice, toPrice, includePrivateOffers)}"> ${event.name} in ${event.city} from ${event.startDate.format('dd.MM.yyyy')} to ${event.endDate.format('dd.MM.yyyy')}</a>
    <br>
#{/list}
